package com.thread.thread;

/**
 * @author xuejingjing
 * @className ThreadImpl
 * @description 多线程的实现
 * @date 2022/11/10/10 23:46
 */
public class ThreadImpl {
    public static void main(String[] args) {
        System.out.println("当前是"+ Thread.currentThread().getName()+"线程");
        ThreadOne threadOne = new ThreadOne("one线程");
        ThreadOne threadTwo = new ThreadOne("two线程");
        threadOne.start();
        System.out.println("当前是"+ Thread.currentThread().getName()+"线程");
        threadTwo.start();
        System.out.println("当前是"+ Thread.currentThread().getName()+"线程");
    }
}
